/*
 * @author: sanbao
 * @Date: 2022-07-29 17:00:13
 */
import axios from 'axios';

const request = axios.create({
    baseURL: process.env.VUE_APP_BASE_API,
    // baseURL: "http://127.0.0.1:9000",

    timeout: 5000
});

request.interceptors.request.use(config => {
    return config
}, err => {
    return Promise.reject(err)
});

request.interceptors.response.use(res => {
    return Promise.resolve(res)
}, err => {
    return Promise.reject(err)
});

export default request